import * as cModule from "../libobject.so"

console.log("js-->c")
let obj = {
    age: 10,
    name: "Winsen",
    play: function () {
        var a = "basketball";
        return a;
    },
    child: {
        sex: "boy",
        age: 0.1,
        getname: function () {
            return "handsome " + this.sex;
        },
    },
};
cModule.js_object_to_c(obj)

console.log("c-->js")
let cobject = cModule.c_object_to_js();
console.log(cobject.age,cobject.name);


